<template>

	<view style="margin-top: 80upx;">
		<block v-for="(item,index) in getWxshopList" :key="index">
			<view class="content" @click="item_details(item.openid)">
				<view class="content-img">
					<image :src="item.logo" mode="aspectFill"></image>
				</view>
				<view class="content-title">
					<text class="title">{{item.shop}}</text>
					<view class="top-title">
						<text>月售200</text>
						<text>约{{item.duration}}</text>
					</view>
					<view class="bottom-title">
						<text>起送¥{{item.delivering}}</text>
						<text>配送¥{{item.physical}}</text>
						<text>人均¥{{item.capita}}</text>
					</view>

					<view class="bottom-title">
						<image src="../../../static/coen/liwu.svg" mode="widthFix"></image>
						<text>{{item.types}}</text>
					</view>
				</view>
			</view>
		</block>
	
	</view>
</template>

<script>
	export default {
		props: {
			getWxshopList: {
				type: Array,
				default: []
			},
		},
		data() {
			return {}
		},
		methods:{
			item_details(openid){
			
				uni.navigateTo({
					// url: 'test?id=1&name=uniapp'
					url:`/pages/food_details/index?openid=${openid}`
				});
			}
		}
		// computed:


	}
</script>

<style scoped lang="scss">
	.content {
		display: flex;
		height: 200upx;
		justify-content: space-between;
		border-bottom: 1upx solid #E4E8EB;
		padding-bottom: 5upx;
		overflow: hidden;

		.content-img {
			image {
				height: 200upx;
				width: 350upx;
				border-radius: 10upx;
			}
		}

		.content-title {
			width: 100%;
			padding-left: 10upx;
			font-size: 24upx;

			.title {
				color: #333333;
				font-size: 33upx;
				font-weight: bold;
				line-height: 50upx;
				height: 50upx;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 1;
				overflow: hidden;
			}

			.top-title {
				display: flex;
				justify-content: space-between;
				line-height: 50upx;
				height: 50upx;
			}
			.bottom-title {
						display: flex;
						align-items: center;
						line-height: 50upx;
						height: 50upx;
						image{
							width: 24upx;
							height: 24upx;
							padding-left: 10upx;
						}
						text{
							display: inline-block;
							width: 100upx;
						}
			}
		}
	}
</style>
